<template>
    <div class="todayUsers">
        <img :src="list.image" alt="" style="width:32px">
        <ul class="userList">
            <li v-for="(item,index) in list1" :key="index">
                <span class="todayUsersHead"><img :src="item.image" alt=""></span>
                <span style="display:inline-block;vertical-align:top">{{item.title}}</span>
            </li>
        </ul>
    </div>
</template>

<script>
    export default {
      name: "todayUsers",
      
      data(){
        return{
          list1:[]
        }
      },
      props:['list'],
      methods:{
        

      },
      mounted(){
        var that=this;
        this.list1=this.list;
        setTimeout(()=>{
            that.list1=that.list.info;
            setInterval(function(){
                that.list1.push(that.list1[0]);
                that.list1.shift();
            },2000);
        },500)
        

      }
    }
</script>

<style scoped lang="scss">
@keyframes mymove
    {
    from {top:0px;}
    to {top:-50px;}
    }
.userList{
    position: absolute;
    // animation:mymove 2s;
}
.indexBanner{
    width: 92vw;
    margin: 0 auto;
    height: 40vw;
    border-radius: 8px;
    overflow: hidden;
    }
    .todayUsersHead{
        width: 30px;
        height: 30px;
        border-radius: 50%;
        overflow: hidden;
        display: inline-block;
        margin-top: 10px;
        margin-right: 15px;
        img{
            width: 100%;
            height: 100%;
        }
    }
    .todayUsers{
        
        position: relative;
        width: 92vw;
        margin: 0 auto;
        height: 50px;
        line-height: 50px;
        overflow: hidden;
        background:#ffffff;
        border-radius: 8px;
        padding: 0 16px;
        margin-top: 20px;
        >img{
            margin-top: 9px;
            margin-right: 25px;
        }
        ul{
            display: inline-block;
            vertical-align: top;
            li{
                color:#333333;
                font-size: 12px;
                img{
                    
                }
            }
        }
    }
</style>
